<!--
 * @Author: yeminglong
 * @Date: 2023-10-20 17:03:03
 * @LastEditTime: 2023-10-20 17:54:09
 * @LastEditors: yeminglong
 * @Description: 
-->
<template>
  <div>{{ p.showName }}</div>
  <div>{{ p.showName.value }}</div>
  <div>{{ showName }}</div>
</template>
<script setup>
const props = defineProps({
  showName: {
    type: String,
    default: "123",
  },
});


const p = toRefs(props);
console.log(p.showName.value);


const { showName } = toRefs(props);
// const { showName } = props;
</script>